<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>欢迎页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<% var now = date(); %>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <blockquote class="layui-elem-quote">欢迎登录：
                        <span class="x-red">${session.authContext.cname!}</span>！当前时间:${now,"yyyy-MM-dd HH:mm:ss"}
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据统计<small>(数据每30分钟刷新一次)</small></div>
                <div class="layui-card-body ">
                    <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>文章数</h3>
                                <p>
                                    <cite>${consoleData.publishTotal}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>阅读总数</h3>
                                <p>
                                    <cite>${consoleData.readTotal}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>会员数</h3>
                                <p>
                                    <cite>${consoleData.userCount!}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>回复数</h3>
                                <p>
                                    <cite>${consoleData.commentTotal}</cite></p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>当日文章发表总数</h3>
                                <p>
                                    <cite>${consoleData.todayPublishTotal}</cite></p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统信息</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>JDK版本</th>
                            <td>${systemInfo.jdkVersion!}</td>
                        </tr>
                        <!--<tr>-->
                            <!--<th>服务器地址</th>-->
                            <!--<td>*******</td>-->
                        <!--</tr>-->
                        <tr>
                            <th>操作系统</th>
                            <td>${systemInfo.operatingSystem!}</td>
                        </tr>
                        <!--<tr>-->
                            <!--<th>运行环境</th>-->
                            <!--<td>Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9</td>-->
                        <!--</tr>-->
                        <tr>
                            <th>使用/共计内存</th>
                            <td>${systemInfo.memoryUsed!}/${systemInfo.memoryTotal!}</td>
                        </tr>
                        <tr>
                            <th>使用/共计Swap</th>
                            <td>${systemInfo.swapUsed!}/${systemInfo.swapTotal!}</td>
                        </tr>
                        <tr>
                            <th>CPU名称</th>
                            <td>${systemInfo.cpuName!}</td>
                        </tr>
                        <!--<tr>-->
                            <!--<th>剩余空间</th>-->
                            <!--<td>86015.2M</td>-->
                        <!--</tr>-->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>